//
//  BGDBOperationProtocol.h
//  BTDatabaseAccesser
//
//  Created by XMac on 2018/4/23.
//  Copyright © 2018年 XMac. All rights reserved.
//

/**
 简单数据库操作curd
 */
#import <Foundation/Foundation.h>
@class FMResultSet;
@protocol BGDBOperationProtocol <NSObject>

- (BOOL)insertObject:(id)obj;

- (BOOL)deleteWithClass:(Class)clz condition:(NSString *)condition, ...;

- (BOOL)updateWithItem:(id)obj;

- (NSArray *)queryItemsWithClass:(Class)clz condition:(NSString *)condition, ...;

- (BOOL)deleteAllWithClass:(Class)clz;


- (BOOL)executeUpdate:(NSString *)sql;

- (FMResultSet *)executeQuery:(NSString *)sql;

@end
